# Contributor: Olliver Schinagl <oliver@schinagl.nl>
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
pkgname=xilinx_bootgen
pkgver=2021.1
pkgrel=2
pkgdesc="Xilinx Bootgen - Convert FPGA bitstreams/bif to bin files"
url="https://github.com/Xilinx/bootgen"
arch="all"
license="Apache-2.0"
options="!check" # No tests available
makedepends="openssl-dev>3"
source="$pkgname-$pkgver.tar.gz::https://github.com/Xilinx/bootgen/archive/xilinx_v$pkgver.tar.gz"
builddir="$srcdir/bootgen-xilinx_v$pkgver"

build() {
	make
}

package() {
	install -D -m 0755 -t "$pkgdir/usr/bin" "$builddir/bootgen"
}

sha512sums="
ca45433f0391e43d9ea3b290f39798c74ee20fc09e75a1a7a9b332e500b4c15531d0add48aafced81aa9b4ae2297aa2c261fd3379862ba62ff4d3b4eb978b609  xilinx_bootgen-2021.1.tar.gz
"
